<template>
    <div class="Nav">
       <img class="return" src="@/assets/images/return.png" @click="goBack" alt="">
       <div class="title">{{title}}</div>
    </div>
</template>

<script>
    export default {
        name:'Nav',
        props:{
            title:{
                type:String
            },
            path:{
                type:String
            }
        },
        methods: {
            goBack(){
                this.$router.push(this.path)
            }
        }
    }
</script>

<style scoped>
.Nav{
    width: 747px;
    height: 90px;
    background-color: #405f80;
    padding-top: 22px;
    display: flex;
    box-sizing: border-box;
    position: fixed;
    top:0;
    z-index: 100;
}
.return{
    width: 40px;
    height: 40px;
    margin-left: 20px;
}
.title{
    color: white;
    margin:0 auto;
    line-height: 45px;
    font-size: 38px;
}
</style>